//
//  DiscoverViewController.swift
//  weibo1
//
//  Created by 代亚洲 on 16/4/16.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class DiscoverViewController: MainTableViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let eascview = easchview.easchv()
        //        设置eascview的宽度为屏幕的宽度
        eascview.frame.size.width = UIScreen.mainScreen().bounds.width
        //        设置导航控制器的titleview
        navigationItem.titleView = eascview
        //        print(eascview);
        
        // 如果没有登录，才去设置
        if !userLogon {
            // 设置访客视图显示的内容
            // 取到访客视图？
            visView.setvistorinfo("visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            return
        }
        
        
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    
    /*
    // MARK: - Navigation
    
    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    // Get the new view controller using segue.destinationViewController.
    // Pass the selected object to the new view controller.
    }
    */
    
}
